import http from './http'
import qs from 'qs'

const userConfig = {
    transformRequest: [
        function (data) {
            return qs.stringify(data);
        }
    ],
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
    }
};
const selectSupplierList = params => http('post', '/api/getAllSupplier', params,userConfig)
const deleteSupplier = params => http('post', '/api/deleteSupplier', params, userConfig)
const updateSupplier = params => http('post', '/api/updateSupplier', params, userConfig)
const addSupplier = params => http('post', '/api/saveSupplier', params, userConfig)
// const selectList = params => http('post', '/api/v1/user/list', params)

export {selectSupplierList, deleteSupplier, updateSupplier,addSupplier}